#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project : POS_api_test_project 
@File    : get_conf_data.py
@IDE     : PyCharm 
@Author  : Mario
@Date    : 2022/5/27 14:58 
@Describe:
"""
from Config.setting import ConfigHandler
from Utils.readFilesUtils.yamlControl import GetYamlData

conf = GetYamlData(ConfigHandler.CONFIG_PATH).get_yaml_data()


def sql_switch():
    """获取数据库开关"""
    switch = conf['MySqlDB']["switch"]
    return switch


def get_notification_type():
    # 获取报告通知类型
    date = conf['NotificationType']
    return date


def get_excel_report_switch():
    """获取excel报告开关"""
    excel_report_switch = conf['excel_report']
    return excel_report_switch


def get_mirror_url():
    """获取镜像源"""
    mirror_url = conf['Mirror_source']
    return mirror_url


tester_name = conf['TesterName']